<?xml version="1.0" encoding="windows-1255" ?>
<%@ page language="java" contentType="text/html; charset=windows-1255"
    pageEncoding="windows-1255"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@page import="dataBase.magaers.XsltDBManager"%>
<%@page import="java.util.List"%>
<%@page import="org.apache.jasper.tagplugins.jstl.core.ForEach"%><html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=windows-1255" />
		<title>XSLT page</title>
	</head>
	<body>
		<form action="../xslt" method="get">
			<input type="text" name="title" />
			 <SELECT NAME="xslId"> 
				<% 
					XsltDBManager manager = XsltDBManager.getInstance();
				   	List<String> xslIds = manager.getXslIds();
				   	for (String id : xslIds){ %>
				   		<OPTION VALUE="<% out.print(id); %>">XSL <% out.print(id); %>  
				   	<%} %>
   			</SELECT>    
			<input type="submit" name="submit"></input>
		</form>
		<p>Upload your own XSL file:</p>
		<form action="../xslt" method="post" ENCTYPE='multipart/form-data'>
			<input type="file" name="upload" />
			<input type="submit" name="uploadFile" value="upload" />
		</form>
	</body>
</html>